/*
 * Part of the ACID Project
 * Developed in 2011 by Morgan Taschuk
 */
package acid.spring.jdbc.services;

import acid.spring.ExperimentAnalysisService;
import acid.spring.db.Experiment;
import acid.spring.db.ExperimentAnalysis;
import acid.spring.jdbc.repositories.ExperimentAnalysisRepository;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author morgan
 */
@Service
public class JdbcExperimentAnalysisService implements ExperimentAnalysisService
{

    @Autowired
    private ExperimentAnalysisRepository experimentAnalysisRepository;

    @Override
    @Transactional(readOnly = true)
    public List<ExperimentAnalysis> getExperimentAnalysisByExperiment(Experiment experiment)
    {
        return experimentAnalysisRepository.getExperimentAnalysisByExperiment(experiment);
    }

}
